#include "tableauWidget.h"
#include "painterPaths.h"
#include <qtutilities/qtutilities.h>
#include <QPainter>
#include <QDebug>

TableauWidget::TableauWidget(QWidget *parent)
  : QWidget(parent)
{
  setStyleSheet("border: 2px solid black;border-radius: 10px;padding: 2px;");
}

void TableauWidget::setBackground(const QColor &c)
{
  mBrush = QBrush(c);
}

void TableauWidget::paintEvent(QPaintEvent *event)
{
  QtUtilities::applyStylesheet(this);
  QWidget::paintEvent(event);
}
